package org.jeecg.modules.agent.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.agent.entity.AgentPurseRecord;
import org.jeecg.modules.agent.facade.IAgentPurseRecordFacade;
import org.jeecg.modules.agent.service.IAgentPurseRecordService;
import org.jeecg.modules.agent.vo.AgentPurseRecordVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 代理钱包记录
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class AgentPurseRecordFacadeImpl extends IFacadeImpl<AgentPurseRecordVo, AgentPurseRecord, IAgentPurseRecordService>  implements IAgentPurseRecordFacade<AgentPurseRecordVo, AgentPurseRecord> {
        @Autowired
        private IAgentPurseRecordService agentPurseRecordService;


         @Override
         public AgentPurseRecord po2Vo(AgentPurseRecordVo vo) {
                AgentPurseRecord po = new AgentPurseRecord();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public AgentPurseRecordVo vo2Po(AgentPurseRecord po) {
                AgentPurseRecordVo vo = new AgentPurseRecordVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
